﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tools.Model;

namespace Tools.DataAccess.Repository
{
    public interface IDbContext : IDisposable
    {
        IDbSet<TEntity> GetSet<TEntity>() where TEntity : EntityBase;
        DbEntityEntry<TEntity> Entry<TEntity>(TEntity entity) where TEntity : class;
        int Save();
        void ExecuteSqlCommand(string sqlCommand, params object[] parameters);
    }
}
